package com.atelier.plugin.database.domain;

import lombok.Getter;

@Getter
public class ColumnInfo {
    private String columnName;
    private String columnType;
    private int columnSize;
    private String remark;
    private boolean isPrimaryKey;//是否是主键
    private String typeName;//字段类型
    private String columnDef;//默认值
    private String isAutoincrement;//是否自增
    private String ordinalPosition;//字段位置
    private String decimalDigits;


    public ColumnInfo(String columnName, String columnType, int columnSize,String remark,Boolean isPrimaryKey,
                 String typeName,String columnDef,String isAutoincrement,String ordinalPosition,String decimalDigits
    ) {
        this.columnName = columnName;
        this.columnType = columnType;
        this.columnSize = columnSize;
        this.remark=remark;
        this.isPrimaryKey=isPrimaryKey;
        this.typeName=typeName;
        this.columnDef=columnDef;
        this.isAutoincrement=isAutoincrement;
        this.ordinalPosition=ordinalPosition;
        this.decimalDigits=decimalDigits;
    }

}
